package com.ruoyi.omp.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.omp.api.domain.BuiBuilding;
import com.ruoyi.omp.api.domain.BuiPark;
import com.ruoyi.omp.api.factory.RemoteRoomFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(contextId = "remoteParkService", value = ServiceNameConstants.OMP_PARK_SERVICE, fallbackFactory =
        RemoteRoomFactory.class)
public interface RemoteParkService {


    @GetMapping(value = "/buiPark/getPark/{parkId}")
    R<BuiPark> getPark(@PathVariable("parkId") String parkId);


    @GetMapping(value = "/buiBuilding/getBuibuiding/{buidingId}")
    R<BuiBuilding> getBuiding(@PathVariable("buidingId") String buidingId);
}
